<?php
	class Teste
	{
		var $a;
		var $b;
		
		function Teste($a, $b)
		{
			$this->setA($a);
			$this->setB($b);
		}
		
		function imprimir()
		{
			echo $this->getA() . '<br>';
			echo $this->getB() . '<br>';
		}
		
		function setA($a)
		{
			$this->a = $a;
		}
		
		function getA()
		{
			return $this->a;
		}
		
		function setB($b)
		{
			$this->b = $b;
		}
		function getB()
		{
			return $this->b;
		}
	}

	$x = new Teste('1','2');
	
	$x->imprimir();
	
	
	
	echo 'Rodou3';
?>